VERSION 5.00
Begin VB.Form port 
   Appearance      =   0  'Flat
   AutoRedraw      =   -1  'True
   BackColor       =   &H80000005&
   BorderStyle     =   0  'None
   Caption         =   "port"
   ClientHeight    =   2235
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   1305
   ClipControls    =   0   'False
   FillColor       =   &H00C0C0C0&
   ForeColor       =   &H00C0C0C0&
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2235
   ScaleWidth      =   1305
   ShowInTaskbar   =   0   'False
   StartUpPosition =   1  'CenterOwner
   Visible         =   0   'False
   Begin VB.Frame Frame1 
      BackColor       =   &H00400000&
      BorderStyle     =   0  'None
      Caption         =   "Port"
      ForeColor       =   &H00C0FFFF&
      Height          =   2295
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   1335
      Begin VB.CommandButton Command14 
         Appearance      =   0  'Flat
         BackColor       =   &H80000004&
         Caption         =   "OK"
         BeginProperty Font 
            Name            =   "Verdana"
            Size            =   8.25
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   360
         Style           =   1  'Graphical
         TabIndex        =   8
         Top             =   1800
         Width           =   735
      End
      Begin VB.ComboBox Combo1 
         BackColor       =   &H00C0FFC0&
         Height          =   315
         ItemData        =   "port.frx":0000
         Left            =   240
         List            =   "port.frx":000D
         Style           =   2  'Dropdown List
         TabIndex        =   4
         Top             =   240
         Width           =   855
      End
      Begin VB.TextBox Text3 
         Alignment       =   2  'Center
         Appearance      =   0  'Flat
         BackColor       =   &H00C0FFC0&
         ForeColor       =   &H00404000&
         Height          =   285
         Left            =   360
         Locked          =   -1  'True
         TabIndex        =   3
         Top             =   1440
         Width           =   735
      End
      Begin VB.TextBox Text2 
         Alignment       =   2  'Center
         Appearance      =   0  'Flat
         BackColor       =   &H00C0FFC0&
         ForeColor       =   &H00404000&
         Height          =   285
         Left            =   360
         Locked          =   -1  'True
         TabIndex        =   2
         Top             =   1080
         Width           =   735
      End
      Begin VB.TextBox Text1 
         Alignment       =   2  'Center
         Appearance      =   0  'Flat
         BackColor       =   &H00C0FFC0&
         ForeColor       =   &H00404000&
         Height          =   285
         Left            =   360
         Locked          =   -1  'True
         TabIndex        =   1
         Top             =   720
         Width           =   735
      End
      Begin VB.Label Label4 
         Alignment       =   2  'Center
         Appearance      =   0  'Flat
         BackColor       =   &H00C0C0FF&
         BackStyle       =   0  'Transparent
         Caption         =   "Cnt"
         ForeColor       =   &H00C0FFC0&
         Height          =   255
         Left            =   0
         TabIndex        =   7
         Top             =   1440
         Width           =   375
      End
      Begin VB.Label Label3 
         Alignment       =   2  'Center
         Appearance      =   0  'Flat
         BackColor       =   &H00C0C0FF&
         BackStyle       =   0  'Transparent
         Caption         =   "Inp"
         ForeColor       =   &H00C0FFC0&
         Height          =   255
         Left            =   0
         TabIndex        =   6
         Top             =   1080
         Width           =   375
      End
      Begin VB.Label Label2 
         Alignment       =   2  'Center
         Appearance      =   0  'Flat
         BackColor       =   &H00FFC0C0&
         BackStyle       =   0  'Transparent
         Caption         =   "Out"
         ForeColor       =   &H00C0FFC0&
         Height          =   255
         Left            =   0
         TabIndex        =   5
         Top             =   720
         Width           =   375
      End
   End
End
Attribute VB_Name = "port"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Combo1_Click() ' with this the parallel port is selected.
output_port = Combo1.Text
input_port = output_port + 1
control_port = output_port + 2
Text1.Text = "0x" & Hex(output_port)
Text2.Text = "0x" & Hex(input_port)
Text3.Text = "0x" & Hex(control_port)
End Sub

Private Sub Command14_Click()
port.Hide
End Sub

